close all;

obj = out{2}.obj;
obj = obj - min(obj);
tim = Time(2)/length(obj);
tim = tim*(0:length(obj)-1) + 1e-3;
semilogy(tim(1:100:end), obj(1:100:end), 'linewidth', 2, 'color', 'red', 'marker', 'x');

hold on;
obj = out{1}.obj;
obj = obj - min(obj) + 1e-2;
tim = Time(1)/length(obj);
tim = tim*(0:length(obj)-1) + 1e-3;
semilogy(tim(1:10:end), obj(1:10:end), 'linewidth', 2, 'color', 'black', 'marker', '+');

% axis([0.1, 1000, 1e-2, 1e+7]);
xlabel('time (sec)');
ylabel('objective minus best');
legend('Soft-Impute', 'AIS-Impute');